﻿'
' Created by SharpDevelop.
' User: MKurt4
' Date: 3/3/2014
' Time: 11:47 AM
' 
' To change this template use Tools | Options | Coding | Edit Standard Headers.
'
Public Partial Class Changes
	Public Sub New()
		' The Me.InitializeComponent call is required for Windows Forms designer support.
		Me.InitializeComponent()
		
		'
		' TODO : Add constructor code after InitializeComponents
		'
	End Sub
	
	Sub Button1Click(sender As Object, e As EventArgs)
Dim OpenFileDialog1 As New OpenFileDialog
With OpenFileDialog1
.CheckFileExists = True
.ShowReadOnly = False
.Filter = "All Files|*.*|Bitmap Files (*)|*.bmp;*.gif;*.jpg"
.FilterIndex = 2
If .ShowDialog = DialogResult.OK Then
MainForm.BackgroundImage = Image.FromFile(.FileName)
End If
End With
Me.Close()
	End Sub
	
	Sub RadioButton1CheckedChanged(sender As Object, e As EventArgs)
MainForm.BackgroundImageLayout = ImageLayout.Tile		
	End Sub
	
	Sub RadioButton2CheckedChanged(sender As Object, e As EventArgs)
MainForm.BackgroundImageLayout = ImageLayout.Center		
	End Sub
	
	Sub RadioButton3CheckedChanged(sender As Object, e As EventArgs)
MainForm.BackgroundImageLayout = ImageLayout.Stretch			
	End Sub
	
	Sub RadioButton4CheckedChanged(sender As Object, e As EventArgs)
MainForm.BackgroundImageLayout = ImageLayout.Zoom			
	End Sub
	
	Sub RadioButton5CheckedChanged(sender As Object, e As EventArgs)
MainForm.BackgroundImage = Nothing		
	End Sub
	
	Sub Button2Click(sender As Object, e As EventArgs)
Me.Close()		
	End Sub
End Class
